package com.erp.erp_servers.Blueprint.imp;

import com.erp.erp_dao.Blueprint.IBlueprintProductDAO;
import com.erp.erp_entitys.Blueprint.BlueprintEntity;
import com.erp.erp_entitys.Blueprint.BlueprintProductEntity;
import com.erp.erp_servers.Blueprint.IBlueprintProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ImpBlueprintProductService implements IBlueprintProductService {
    @Autowired
    IBlueprintProductDAO blueprintProductDAO;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return blueprintProductDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(BlueprintProductEntity blueprintProduct) {
        return blueprintProductDAO.insert(blueprintProduct);
    }

    @Override
    public int insertSelective(BlueprintProductEntity blueprintProduct) {
        return blueprintProductDAO.insertSelective(blueprintProduct);
    }

    @Override
    public BlueprintProductEntity selectByPrimaryKey(Integer id) {
        return blueprintProductDAO.selectByPrimaryKey(id);
    }


    @Override
    public int updateByPrimaryKeySelective(BlueprintProductEntity blueprintProduct) {
        return blueprintProductDAO.updateByPrimaryKeySelective(blueprintProduct);
    }

    @Override
    public int updateByPrimaryKey(BlueprintProductEntity blueprintProduct) {
        return blueprintProductDAO.updateByPrimaryKey(blueprintProduct);
    }

    @Override
    public List<BlueprintProductEntity> selectByPage(Map<String,String> map) {
        return blueprintProductDAO.selectByPage(map);
    }
    @Override
    public List<BlueprintProductEntity> selectProductByBid(Integer bid) {
        return blueprintProductDAO.selectProductByBid(bid);
    }
}
